Restarting IIS

In IIS 5.0, you can stop and restart all of your Internet services from within the IIS snap-in. This makes it unnecessary to restart your computer when applications misbehave or become unavailable.

To restart IIS
  1. In the Internet Information Services snap-in, select the Computer icon in the contents pane and click the Action button.
  2. Click the Action button and select Restart IIS.
  3. From the drop-down menu, select Restart Internet Services, Stop Internet Services, Start Internet Services, or Restart computer name.

Important   Restarting will stop all Drwtsn32.exe, Mtx.exe, and Dllhost.exe processes in order to restart Internet services. You cannot restart IIS by using the browser-based Internet Services Manager (HTML).

Note   You should use the method outlined above, and not the Windows 2000 Services snap-in, for restarting Internet services. Because several Internet services run in one process, Internet services shut down and restart differently from other Windows services. For scheduled restarts or for integration with third-party or custom tools, we provide a command-line version of the IIS snap-in restarting feature: Iisreset.exe. See the following command-line usage and parameters.

iisreset [computername]
 
/RESTART Stop and then restart all Internet services.
/START Start all Internet services.
/STOP Stop all Internet services.
/REBOOT Reboot the computer.
/REBOOTONERROR   Reboot the computer if an error occurs when starting, stopping, or restarting Internet services.
/NOFORCE Do not forcefully terminate Internet services if attempting to stop them gracefully fails.
/TIMEOUT:val Specify the timeout value (in seconds) to wait for a successful stop of Internet services. On expiration of this timeout the computer can be rebooted if the /REBOOTONERROR parameter is specified. The default value is 20s for restart, 60s for stop, and 0s for reboot.
/STATUS Display the status of all Internet services.
/ENABLE Enable restarting of Internet Services on the local system.
/DISABLE Disable restarting of Internet Services on the local system.

Related Topics


© 1997-1999 Microsoft Corporation. All rights reserved.